python program to calculate the sum of a list of numbers